﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Syndication;

namespace ajayumi.develop.win32.GRssReader.Service.Model
{
    public class FeedBriefInfo : SyndicationFeed
    {
        public string TitleText { get; set; }

        public Uri Url { get; set; }

        public FeedBriefInfo(SyndicationFeed feed)
            : base(feed, false)
        {
            if (feed.Title != null)
            { this.TitleText = feed.Title.Text; }
            if (feed.Links != null && feed.Links.Count > 0)
            { this.Url = feed.Links[0].Uri; }
        }
    }
}
